<template>
  <div class="search">
    <form action="/search">
        <van-search
          v-model="value"
          placeholder="请输入搜索关键词"
          show-action
          @search="onSearch"
        >
        <template #action>
          <div @click="onSearch">搜索</div>
        </template>
        </van-search>
      </form>
  </div>
</template>

<script>
export default {
  methods: {
    show() {
      this.$refs.input1.blur();
    },
  },
};
</script>

<style>
</style>